<%@ page session="false"%>
<%@ page contentType="text/html; charset=UTF-8"%>
			
<div class="bottom_content">
	<div class="bottom_content_head"></div>
	<div id="postbox_container">
		<div id="postbox">
			<div class="title">发布知识(要先登陆才行):</div>
			<textarea id="zhishibox" name="zhishi" rows="5" cols="85">这里是你要写的知识</textarea>
			<input type="submit" class="fly" value="确定"/>
			<div class="clear"></div>
		</div>
	</div>	
	<script language="JavaScript" type="text/javascript">
	    //<![CDATA[
	    $(function(){
	    	$( "#dialog:ui-dialog" ).dialog( "destroy" );
		    
			$("#postbox :submit").click(function(){
				var zhishi=$("#zhishibox").val();
				try{
					$.post("zhishi/add",{userName:me,zhishi:zhishi},function(json){
						if(json.state=='ok'){
							alert("发表成功!");
						}else{
							alert("发表失败:"+json.message);
						}
					});
				}catch(e){alert(e)};
			});
			
			$("#postbox :submit").button();
		});
	    //]]>
	</script>
	<div class="footer">&copy; hontlong.com 2010</div>	
</div>	
			